-
-
Notifications
You must be signed in to change notification settings - Fork 892
feat: adds (no-)ignore-vsc-exclude #1652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
e59ab54
to
08c42d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine to me.
But before merging it should have some tests and a changelog entry, and update the manpage.
@@ -78,6 +78,22 @@ pub struct Opts { | |||
#[arg(long, overrides_with = "no_ignore_vcs", hide = true, action = ArgAction::SetTrue)] | |||
ignore_vcs: (), | |||
|
|||
///Show search results from files and directories that | |||
///would otherwise be ignored by '.git/info/exclude'. | |||
///Git ignore files are still respected unless --no-ignore-vsc is given. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
///Git ignore files are still respected unless --no-ignore-vsc is given. | |
///Git ignore files are still respected unless --no-ignore-vcs is given. |
@@ -78,6 +78,22 @@ pub struct Opts { | |||
#[arg(long, overrides_with = "no_ignore_vcs", hide = true, action = ArgAction::SetTrue)] | |||
ignore_vcs: (), | |||
|
|||
///Show search results from files and directories that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Add space between the final "/" and thext of the comment
help = "Do not respect .git/info/exclude", | ||
long_help | ||
)] | ||
pub no_ignore_vcs_exclude: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's call this "no_ignore_exclude" to match the name ripgrep uses.
closes #1612
Let me know if this looks okay, if so I can add tests and update the docs.